package com.lhn.springcloud.myrule;

import com.netflix.loadbalancer.IRule;
import com.netflix.loadbalancer.RandomRule;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author lhn
 * @date 2024-07-10 16:32
 */

@Configuration
public class MyRule {

//    @Bean
    public IRule iRule() {
        return new RandomRule();
    }
}
